package cn.tedu.trading_platform.base.response;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    //所有的实例定义在最上面
    OPERATION_SUCCESS(200, "操作成功"),
    OPERATION_FAIL(500, "操作失败"),
    USER_NOT_EXIST(400, "用户不存在"),
    USER_EXIST(400, "用户已存在"),
    USER_PASSWORD_ERROR(400, "用户名或密码错误"),
    USER_NOT_LOGIN(400, "用户未登录"),
    USER_NOT_ADMIN(400, "用户不是管理员"),
    USER_NOT_EXIST_OR_PASSWORD_ERROR(400, "用户不存在或密码错误"),
    USER_NOT_EXIST_OR_PASSWORD_ERROR_OR_NOT_ADMIN(400, "用户不存在或密码错误或无权限"),
    USER_NOT_EXIST_OR_PASSWORD_ERROR_OR_NOT_ADMIN_OR_NOT_LOGIN(400, "用户不存在或密码错误或无权限或未登录"),
    USER_nOT_UPDATE(400,"用户修改失败"),
    USER_NOT_DELETE(400,"用户注销失败"),
    UNAUTHORIZED(401,"未授权" ),
    USERNAME_ALREADY_EXISTS(400,"用户名已存在"),
    ;
    private Integer status;
    private String message;
}

